from rest_framework_jwt.views import obtain_jwt_token
from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^usernames/(?P<username>\w{5,20})/count/$',views.CheckIsernameView.as_view()),
    url(r'^phones/(?P<module>1[345789]\d{9})/count/$',views.CheckMobileView.as_view()),
    url(r'^/$', views.RegisterUserView.as_view()),
    url(r'^auths/$',obtain_jwt_token),
    url(r'^infos/$',views.UserInfoView.as_view()),
    url(r'^emails/$',views.EmailSendView.as_view())

]